<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.min.js"></script>
</head>
<body>
<div id="app">
    <h3>{{number}}</h3>
    <input type="button" @click="change_number(78,'小黑')" value="点我">
    <input type="button" @click="change_number(78,'小黑',event)" value="点我">
    <input type="button" @click="change_number2()" value="点我">

</div>
<script>
    new Vue({
        el: "#app",
        data: {
            number: 18,
        },
        methods:{
            change_number(num, name) {
                console.log(name);
                this.number = num;
                console.log(event)
            },
            change_number2(){
                console.log(event)

            }
        },

    })
</script>
</body>
</html>